/**
 * 
 */
String.prototype.temp = function(obj) {
   return this.replace(/\$[\w+\.?w+]+\$/gi, function(matchs) {
	    var returns;
		var matchStr = matchs.replace(/\$/g, "");
		var reg1 = /^[a-zA-Z0-9]+$/gi,//property
			reg2=/^[a-zA-Z0-9]+\.[a-zA-Z0-9]+$/gi,//property.property
			reg3=/^[a-zA-Z0-9]+\.[a-zA-Z0-9]+\.[a-zA-Z0-9]+$/gi;//property.property.property
		if(reg1.test(matchStr)){//property
			returns = obj[matchStr];
		}else if(reg2.test(matchStr)){//property.property
			var pros = matchStr.split('.');
			if(obj[pros[0]]!=null){
				returns = obj[pros[0]][pros[1]];
			}else{
				returns = '';
			}

		}else if(reg3.test(matchStr)){//property.property.property
			var pros = matchStr.split('.');
			if(obj[pros[0]]!=null&&obj[pros[0]][pros[1]]!=null){
				returns = obj[pros[0]][pros[1]][pros[2]];
			}else{
				returns = '';
			}
		}
		return (returns + "") == "undefined"? "": returns;
   });
};

    String.prototype.fillInside = function(htmlInside) {
        return this.replace('####', htmlInside);
  };